package com.sale.goods.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.goods.domain.GoodsInvoicePin;
import com.sale.goods.domain.dto.GoodsInvoicePinDto;
import com.sale.goods.domain.vo.GoodsInvoicePinVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Description 进项税发票
 * @Date 23-07-19
 * @Author hl
 **/
public interface GoodsInvoicePinMapper extends BaseMapperPlus<GoodsInvoicePinMapper, GoodsInvoicePin, GoodsInvoicePin> {


    /**
     * 根据物料信息查询属性
     * @param build,buildQueryWrapper
     * @return   List<GoodSInvoicePinDto>
     */
    Page<GoodsInvoicePinDto> selectInvoicePinList(@Param("page") Page<GoodsInvoicePinVo> build, @Param(Constants.WRAPPER) Wrapper<GoodsInvoicePinVo> buildQueryWrapper);

    /**
     * 根据号码查询唯一性
     * @param number
     * @return   int
     */
    int selectNumberCount(String number);
}
